{extend name="Public:ajaxBase"/}

{block name="main"}
<div class="box-info">
    <form id="myform" class="form-horizontal" action="" method="post">

        <div class="form-group row">
            <label class="col-sm-2 text-right">上级</label>
            <div class="col-sm-10">
                <select class="form-control" name="pid">
                    <option value="0">顶级分类</option>
                    {$nodes}
                </select>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-right">标题</label>
            <div class="col-sm-10">
                <input type="text" name="title" class="form-control"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-right">名称</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" name="name"/>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm-2 text-right">图标</label>
            <div class="col-sm-10">
                <div class="input-group input-groupp-md">
                    <input type="text" class="form-control" id="icon" name="icon" value="fa fa-circle-o">
                    <a href="javascript:;" class="btn-search-icon input-group-addon">搜索图标</a>
                </div>
            </div>
        </div>


        <div class="form-group row">
            <label class="col-sm-2 text-right">描述</label>
            <div class="col-sm-10">
                <textarea  id="remark" name="remark" rows="3" cols="40" class="form-control">{$udate['remark']}</textarea>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm-2 form-control-label">菜单</label>
            <div class="col-sm-4">
                <input type="radio" name="ismenu" value="1" {eq name="udate['ismenu']" value="1"}checked="checked"{/eq} />是
                <input type="radio" name="ismenu" value="0" {eq name="udate['ismenu']" value="0"}checked="checked"{/eq} />否
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-right">状态</label>
            <div class="col-sm-10">
                <input type="radio" name="status" value="1" checked="checked"/>启用
                <input type="radio" name="status" value="0" />禁用
            </div>
        </div>

        <div class="form-actions">
            <button type="submit" class="btn btn-primary ajax_form_submit">提交</button>
            <button type="button" class="btn btn-danger" onclick="javascript:history.back(-1);return false;">返回</button>
        </div>
    </form>
</div>
{/block}